import { DataTypes, Sequelize } from 'sequelize'
import { BaseModel, BaseModelAttribute } from './baseModel'
import { ModelUtils } from './modelUtils'
interface NameTextAttribute extends BaseModelAttribute {
  text: string
  type: string
}
export class NameText extends BaseModel<NameTextAttribute>{
  text: string
  type: string
}
export class NameTextInit {
  static init(sequelizeInstance: Sequelize) {
    NameText.init(ModelUtils.appendPublicFields({
      text: { type: DataTypes.STRING, allowNull: false, comment: '名称文本' },
      type: { type: DataTypes.STRING, allowNull: false, comment: '分类' }
    }), ModelUtils.appendTablePublicProperties('name_text', sequelizeInstance, '名称文本'))
  }
}